```mermaid
graph TD
    %% 定义节点样式
    classDef application fill:#f9f,stroke:#333,stroke-width:2px;
    classDef service fill:#bbf,stroke:#333,stroke-width:2px;
    classDef communication fill:#bfb,stroke:#333,stroke-width:2px;
    classDef network fill:#fbb,stroke:#333,stroke-width:2px;
    classDef device fill:#ffb,stroke:#333,stroke-width:2px;

    %% 应用层
    APP[Node.js应用程序] --> CONFIG[配置模块]
    APP --> LOGGER[日志模块]
    APP --> DATACOLLECTOR[数据采集模块]
    APP --> CONTROLLER[设备控制模块]
    
    %% 服务层
    DATACOLLECTOR --> ADAPTER[PLC适配器]
    CONTROLLER --> ADAPTER
    
    %% 通信层
    ADAPTER --> SIEMENS[西门子PLC适配器]
    ADAPTER --> ROCKWELL[罗克韦尔PLC适配器]
    SIEMENS --> MODBUS_TCP[Modbus TCP客户端]
    ROCKWELL --> MODBUS_TCP
    ROCKWELL --> MODBUS_RTU[Modbus RTU客户端]
    
    %% 网络层
    MODBUS_TCP --> SWITCH[以太网交换机]
    MODBUS_RTU --> SERIAL[串口服务器]
    
    %% 设备层
    SWITCH --> S7_1200[西门子S7-1200]
    SWITCH --> S7_1500[西门子S7-1500]
    SWITCH --> AB_1769[罗克韦尔1769]
    SERIAL --> AB_1756[罗克韦尔1756]
    
    %% 应用节点样式
    class APP,CONFIG,LOGGER application;
    %% 服务节点样式
    class DATACOLLECTOR,CONTROLLER service;
    %% 通信节点样式
    class ADAPTER,SIEMENS,ROCKWELL,MODBUS_TCP,MODBUS_RTU communication;
    %% 网络节点样式
    class SWITCH,SERIAL network;
    %% 设备节点样式
    class S7_1200,S7_1500,AB_1769,AB_1756 device;
```
